package
{
	import flash.display.Sprite;

	public class ActionBar
	{
		private var m_buttons:Vector.<ActionBarButton> = new Vector.<ActionBarButton>;
		private var m_display:Sprite = new Sprite();
		
		public function ActionBar()
		{
				
		}
		
		public function getDisplay():Sprite{
			return m_display;
		}
		
		public function addButton(actionBarButton:ActionBarButton):ActionBarButton{
			m_buttons.push(actionBarButton);
			actionBarButton.getDisplay().x = m_display.width + 10;
			m_display.addChild(actionBarButton.getDisplay());
			return actionBarButton;
		}
	}
}